@extends('default.layout')
@section('code_style')
	{{HTML::style('public/default/plugins/select2/select2.css')}}
	{{HTML::style('public/default/plugins/bootstrap-datepicker/css/datepicker.css')}}
@stop
@section('content')
<div class="row">
	<div id="myErrorContainer" class="alert alert-danger" style="font-size: 15px;margin-bottom:1px;height: 15px;line-height: 0px;">
	</div>
</div>
{{Form::open(array('url'=>'tuyen-sinh/','name'=>'add-tuyensinh-form','class'=>'add-tuyensinh-form','id'=>'save_tuyensinh','method'=>'post'))}}
	<div class="row pages_content_vhu">
		<div class="row form-group">
			<div class="col-md-5">
	            <label class="control-label col-md-4">Họ tên thí sinh</label>
	              <div class="col-md-8">
	              	{{Form::text('txtHoTen', Input::old("txtHoTen"), array('class'=>'form-control','placeholder'=>'Nhập họ tên sinh viên'))}}
	              </div>
	          </div>
	          <div class="col-md-3">
	              <label class="control-label col-md-5">Giới tính</label>
	               <div class="col-md-7">
	                  <select class="form-control" name="gioitinh" id="gioitinh">
	                    <option @if(Input::old("gioitinh") == 1) {{"selected='selected'"}} @endif value="1">Nam</option>
	                    <option @if(Input::old("gioitinh") == 0) {{"selected='selected'"}} @endif value="0">Nữ</option>
	                  </select>
	              </div>
	          </div>
	          <div class="col-md-4"> 
	              <label class="control-label col-md-4">Ngày sinh</label>
	              <div class="col-md-8">
	                {{Form::text('txtNgaySinh', Input::old("txtNgaySinh"), array('class'=>'form-control','placeholder'=>'Chọn ngày sinh'))}}
	              </div>  
	          </div>
		</div><!-- End .form-group -->
		
		<div class="row form-group">
			<div class="col-md-5">
				<label class="control-label col-md-4">Nơi sinh</label>
	              <div class="col-md-8">
                   	<select style="width:100% !important;" name="noisinh" id="noisinh">
	                  <option value="">-- Vui lòng chọn nơi sinh --</option>
	                  @foreach($tinhs as $item)
                        <option @if(Input::old("noisinh") == $item->Tinh) {{"selected='selected'"}} @endif value="{{$item->Tinh}}">{{$item->TenTinh}}</option>
                      @endforeach   
                  	</select>
	            </div>  
			</div>
			<div class="col-md-7">
				<label class="control-label col-md-2">Địa chỉ</label>
				<div class="col-md-10">
                  {{Form::text('txtDiaChi', Input::old("txtDiaChi"), array('class'=>'form-control','placeholder'=>'Nhập địa chỉ sinh viên'))}}
              </div> 
			</div>
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-7">
				<label class="control-label col-md-3" style="width:23% !important;">Đối Tượng</label>

	            <div class="col-md-9">
	                <select style="width:100% !important;" name="doituong" id="doituong">
	                  @foreach($doituongs as $item)
                        <option @if(Input::old("doituong") == $item->DoiTuong) {{"selected='selected'"}} @endif value="{{$item->DoiTuong}}">{{$item->Ten_DoiTuong}}</option>
                      @endforeach                    
	                </select>
	            </div>  
			</div>
			<div class="col-md-5">
				<label class="control-label col-md-4">Khu Vực</label>
	            <div class="col-md-8">
	                <select style="width:100% !important;" name="khuvuc" id="khuvuc">
	                     <option value="">-- Vui lòng chọn khu vực --</option>
		                  @foreach($khuvucs as $item)
	                        <option @if(Input::old("khuvuc") == $item->KhuVuc) {{"selected='selected'"}} @endif value="{{$item->KhuVuc}}">{{$item->Ten_KhuVuc}}</option>
	                      @endforeach 
	                </select>
	            </div>  
			</div>
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-5">
				<label class="control-label col-md-4">Tỉnh Thành</label>
	            <div class="col-md-8">
	                <select style="width:100% !important;" name="tinhthanh" id="tinhthanh">
	                    <option value="">-- Vui lòng chọn tỉnh thành --</option>
		                  @foreach($tinhs as $item)
	                        <option @if(Input::old("tinhthanh") == $item->Tinh) {{"selected='selected'"}} @endif value="{{$item->Tinh}}">{{$item->TenTinh}}</option>
	                      @endforeach   
	                </select>
	            </div>  
			</div>
			<div class="col-md-7">
				<label class="control-label col-md-4">Quận Huyện</label>
	            <div class="col-md-8">
	                <select style="width:100% !important;" name="quanhuyen" id="quanhuyen">
	                	<option value="">-- Chọn quận huyện --</option>
	                </select>
	            </div>  
			</div>
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-7">
				<label class="control-label col-md-4">Trường THPT(Lớp 12)</label>
				<div class="col-md-8">
                    <select style="width:100% !important;" name="thpt" id="thpt">
	                    <option value="">-- Chọn Trường THPT (Lớp 12) --</option>
	                </select>
              </div> 
			</div>
			<div class="col-md-5">
				 <label class="control-label col-md-4">Điện thoại liên lạc</label>
	              <div class="col-md-8">
	                    {{Form::text('txtDienThoai', Input::old("txtDienThoai"), array('class'=>'form-control','placeholder'=>'Nhập điện thoại liên lạc'))}}
	              </div>  
			</div>
		</div><!-- End .form-group -->
	</div><!-- End .pages_content_vhu -->
	<div class="row">
		<h3 class="text-center">Xét Tuyển</h3>
	</div>
	<div class="row pages_content_vhu">
		<div class="row form-group">
			<div class="col-md-3">
				<label class="control-label col-md-5">Đợt xét</label>
				<div class="col-md-7">
					 <select class="form-control" name="DotXet" id="DotXet">
	                    <option @if(Input::old("DotXet") == 1) {{"selected='selected'"}} @endif value="1">1</option>
	                    <option @if(Input::old("DotXet") == 2) {{"selected='selected'"}} @endif value="2">2</option>
	                </select>
				</div>
			</div>
			<div class="col-md-6">
				<label class="control-label col-md-4">Ngày nhận hồ sơ</label>
				<div class="col-md-4">
	               {{Form::text('txtNgayNhanHoSo',Input::old("txtNgayNhanHoSo"), array('class'=>'form-control','placeholder'=>'Ngày nhận hồ sơ'))}}
	            </div>
			</div>
		</div><!-- End .form-group -->

		<div class="row form-group">
			<div class="col-md-3">
				<label class="control-label col-md-5">Mã ngành</label>
				<div class="col-md-7">
					 <select style="width:100% !important;" name="nganhnghe" id="nganhnghe">
	                    <option value="">Ngành nghề</option>
		                  @foreach($nganhnghes as $item)
	                        <option @if(Input::old("nganhnghe") == $item->idNganh) {{"selected='selected'"}} @endif value="{{$item->idNganh}}">{{$item->MaNganh}}</option>
	                      @endforeach   
	                </select>
				</div>
			</div>
			<div class="col-md-6">
				<label class="control-label col-md-3">Tên Ngành</label>
				<div class="col-md-9">
	               {{Form::text('txtTenNganh',Input::old("txtTenNganh"), array('class'=>'form-control','placeholder'=>'Tên nghành DVH'))}}
	            </div>
			</div>
			<div class="col-md-3">
				<label class="control-label col-md-5">Khối Xét</label>
				<div class="col-md-7">
					 <select style="width:100% !important;" name="KhoiXet" id="KhoiXet">
	                    <option value="">Khối xét</option>
	                </select>
				</div>
			</div>
		</div><!-- End .form-group -->

		<div class="row form-group">
			<div class="col-md-4">
	            <label class="control-label col-md-5">Năm tốt nghiệp</label>
	              <div class="col-md-7">
	                <select class="form-control" name="NamTN" id="NamTN">
	                	<option @if(Input::old("NamTN") == 2015) {{"selected='selected'"}} @endif value="2015">2015</option>
	                    <option @if(Input::old("NamTN") == 2) {{"selected='selected'"}} @endif value="2014">2014</option>
	                    <option @if(Input::old("NamTN") == 3) {{"selected='selected'"}} @endif value="2013">2013</option>
	                </select>
	              </div>
	          </div>
	          <div class="col-md-5">
	              <label class="control-label col-md-4"></label>
	                <div class="col-md-8">
	                <div class="radio-list">
						<label class="radio-inline">
						{{Form::radio('BangTN',1,(Input::old('BangTN') == 1) ? true : false)}}
						Bằng TN </label>
						<label class="radio-inline">
						{{Form::radio('BangTN',0,(Input::old('BangTN') == 0) ? true : false)}}
						Giấy CNTN </label>
					</div>
	              </div>
	          </div>
	          
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-3">
				<label class="control-label col-md-12">Các môn xét tuyển</label>
			</div>
			<div class="col-md-9">
				<label for="" class="control-label col-md-4" id="Name_Mon1">Toán</label>
				<label for="" class="control-label col-md-4" id="Name_Mon2">Lý</label>
				<label for="" class="control-label col-md-4" id="Name_Mon3">Hóa</label>
			</div>
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-3"><label class="control-label col-md-12">Học kỳ I - Lớp 11</label></div>
			<div class="col-md-9">
				<div class="col-md-4">
					{{Form::text('txtHK1_11_Mon1',Input::old("txtHK1_11_Mon1"), array('class'=>'form-control','placeholder'=>'Môn 1','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					{{Form::text('txtHK1_11_Mon2', Input::old("txtHK1_11_Mon2"), array('class'=>'form-control','placeholder'=>'Môn 2','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					{{Form::text('txtHK1_11_Mon3',Input::old("txtHK1_11_Mon3"), array('class'=>'form-control','placeholder'=>'Môn 3','style'=>'width:35% !important;'))}}
				</div>
			</div>
		</div><!-- End .form-group -->
		<div class="row form-group">
			<div class="col-md-3"><label class="control-label col-md-12">Học kỳ II - Lớp 11</label></div>
			<div class="col-md-9">
				<div class="col-md-4">
					{{Form::text('txtHK2_11_Mon1', Input::old("txtHK2_11_Mon1"), array('class'=>'form-control','placeholder'=>'Môn 1','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					{{Form::text('txtHK2_11_Mon2', Input::old("txtHK2_11_Mon2"), array('class'=>'form-control','placeholder'=>'Môn 2','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					{{Form::text('txtHK2_11_Mon3', Input::old("txtHK2_11_Mon3"), array('class'=>'form-control','placeholder'=>'Môn 3','style'=>'width:35% !important;'))}}
				</div>
			</div>
		</div><!-- End .form-group -->

		<div class="row form-group">
			<div class="col-md-3"><label class="control-label col-md-12">Học kỳ I - Lớp 12</label></div>
			<div class="col-md-9">
				<div class="col-md-4">
					{{Form::text('txtHK1_12_Mon1', Input::old("txtHK1_12_Mon1"), array('class'=>'form-control','placeholder'=>'Môn 1','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					{{Form::text('txtHK1_12_Mon2', Input::old("txtHK1_12_Mon2"), array('class'=>'form-control','placeholder'=>'Môn 2','style'=>'width:35% !important;'))}}
				</div>
				<div class="col-md-4">
					<div class="col-md-6">
						{{Form::text('txtHK1_12_Mon3', Input::old("txtHK1_12_Mon3"), array('class'=>'form-control','placeholder'=>'Môn 3','style'=>'margin-left:-16% !important;width:96% !important;'))}}
					</div>
					<div class="col-md-6">
						{{Form::button('Xét', array('class'=>'btn btn-success','id'=>'Xet_KetQua','style'=>'height:30px !important;padding:5px 12px !important;'))}}
					</div>
				</div>
			</div>
		</div><!-- End .form-group -->

		<div class="row form-group">
			<div class="col-md-4">
				<label class="control-label col-md-5">Điểm xét tuyển</label>
				<div class="col-md-6">
					{{Form::text('txtDiemXetTuyen', DiemInputOld(Input::old("txtDiemXetTuyen")), array('class'=>'form-control','placeholder'=>'Điểm xét tuyển','style'=>'width:90% !important;'))}}
					{{ Form::hidden('diemchuan')}}
				</div>
			</div>
			<div class="col-md-4">
				<label class="control-label col-md-5">Kết Quả</label>
				<div class="col-md-6">
					{{Form::text('txtKetQua', Input::old("txtKetQua"), array('class'=>'form-control','placeholder'=>'Kết Quả','style'=>'width:90% !important;color:red;font-weight:700;'))}}
				</div>
			</div>
			<div class="col-md-3">
				{{Form::submit('Lưu Kết Quả', array('class'=>'btn btn-success','id'=>'Luu_KetQua','style'=>'height:30px !important;padding:5px 12px !important;'))}}
			</div>
		</div><!-- End .form-group -->

	</div><!-- End .pages_content_vhu -->
{{Form::close()}}
@stop

@section('code_script')
{{HTML::script('public/default/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js')}}
{{HTML::script('public/default/plugins/select2/select2.min.js')}}
{{HTML::script('public/default/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js')}}
<!-- Valid js -->
{{HTML::script('public/default/plugins/jquery-validation/js/jquery.validate.min.js')}}
{{HTML::script('public/default/js/functions.js')}}
{{HTML::script('public/default/js/tuyensinh.js')}}
{{HTML::script('public/default/js/form_validation.js')}}
<!-- Xử Lý js -->
<script type="text/javascript">
	$(document).ready(function(){
		TuyenSinh.init();
		FormValidation.init();
	});
</script>
@stop
